package com.woniuxy.kaer.system.service;

import com.woniuxy.kaer.system.dto.RoleResourceDTO;
import com.woniuxy.kaer.system.model.Resources;
import com.woniuxy.kaer.system.model.RoleResource;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sun
 * @since 2025年02月17日
 */
public interface RoleResourceService extends IService<RoleResource> {

    public void addRoleResource(Integer roleId, Integer resourceId)throws Exception;

    public void removeRoleResource(Integer roleId, Integer resourceId)throws  Exception;

    public void updateRoleResource(RoleResourceDTO roleResourceDTO)throws Exception;

    public List<Resources> getRoleResource(Integer roleId)throws Exception;
}
